package com.thinkcoder.test;

import com.thinkcoder.aspect.AuthAnnotation;
import com.thinkcoder.service.AuthToken;
import com.thinkcoder.service.DefaultApiAuthenticateImpl;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.Random;

/**
 * @Author : 商俊帅
 * @Date : 2021/4/5 16:26
 * @Description :
 */
@RestController
public class InvokeController {

    @AuthAnnotation
    @GetMapping("/test")
    public void test1(@RequestParam  String id){

        System.out.println(id);
    }
}
